package com.cupk.carManageMaster.common.domain;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;

/**
 * 名称ResponseBase
 * 描述响应类，统一返回结果
 *
 * @version 1.0
 * @author:wanghao
 * @datatime:2023,06,01,15,40
 */
@Data
@Slf4j
public class ResponseBase {
    private Integer rtnCode;
    private String msg;
    private Object data;

    public ResponseBase() {

    }

    public ResponseBase(Integer rtnCode, String msg, Object data) {
        super();
        this.rtnCode = rtnCode;
        this.msg = msg;
        this.data = data;
    }

    public Integer setRtnCode(Integer rtnCode) {
        return rtnCode;
    }

    public String setMsg(String Msg) {
        return Msg;
    }

    public Object setData(Object data) {
        return data;
    }


    public String Result() {
        return "ResponseBase [rtnCode=" + rtnCode + ", msg=" + msg + ", data=" + data + "]";
    }

    public static void main(String[] args) {
        ResponseBase responseBase = new ResponseBase();
        responseBase.setData("123456");
        responseBase.setMsg("success");
        responseBase.setRtnCode(200);
        System.out.println(responseBase.Result());
    }


}
